import React from "react";
import "./index.css"

const Card =(props)=>{
    
    return(
        <div className="box">
            <div className="top">
                <div className="title">{props.title}</div>
                <button onClick={props.clickHandler}>{props.button}</button>
            </div>
            <div className="main">
                {props.children}
            </div>
        </div>
    )
}



export default Card